<template>
  <el-table :data="tableData" border stripe style="width: 100%">
  <el-table-column prop="deptName" label="部门名称" width="180" align="center"/>
    <el-table-column prop="orderNum" label="排序" width="180" align="center"/>
    <el-table-column prop="status" label="状态" width="100" align="center">
      <template #default="{row}">
        <el-tag :type="row.status === '0' ? 'success' : 'danger'" size="small">
          {{ row.status === '0' ? '正常' : '停用' }}
        </el-tag>
      </template>
    </el-table-column>
    <el-table-column prop="createTime" label="创建时间" width="200" align="center"/>
    <el-table-column label="操作" width="180" align="center">
      <template #default="{row}">
        <el-button type="text" size="mini" @click="handleEdit(row)">编辑</el-button>
        <el-button type="text" size="mini" @click="handleDelete(row)">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>

export default {
  data() {
    return {
      tableData: []

    }
  }
}
</script>